#include <iostream>

using namespace std;

int main(int argc,char *argv[])
{ int a,b;
    std::cout<<"vvedite chislo bolshe 999:";
    std::cin>>a;
    b=a/100;
    b=b%10;
    std::cout<<"sotni:"<<b<<endl;
    cout<<"press key";
    return 0;
}
